<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<html>
	<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="keywords" content="吾爱电影网,http://www.5ifilm.net,<c:forEach var="star" items="${film.starList}">${star.starName},</c:forEach>${film.filmName}" />
    <meta name="description" content="${film.filmIntroduce}" />
    <meta name="author" content="${systemParamMap["siteauthor"].paramValue}" />
	<title>正在播放电影－${film.filmName} - 上映时间${film.showTime}</title>
	<link rel="stylesheet" type="text/css" href="<%=request.getContextPath() %>/css/main.css" />
    <link href="<%=request.getContextPath() %>/css/jquery.autocomplete.css" rel="stylesheet" type="text/css" />
    <link rel="ShortcutIcon" href="favicon.ico" type="image/x-icon" />
    <link rel="Bookmark" href="favicon.ico" />
    <script src="<%=request.getContextPath() %>/js/jquery-1.7.1.min.js" type="text/javascript"></script>
    <script src="<%=request.getContextPath() %>/js/common.js" type="text/javascript"></script>
    <script src="<%=request.getContextPath() %>/js/play.js" type="text/javascript"></script>
	<script src="<%=request.getContextPath() %>/js/main.js" type="text/javascript"></script>
	<script src="<%=request.getContextPath() %>/js/v_img.js" type="text/javascript"></script>
    <script src="<%=request.getContextPath() %>/js/jquery.autocomplete.min.js" type="text/javascript"></script>
</head>
<body>
<div id="main">
	
	<jsp:include page="header.jsp"></jsp:include>
	
	<div class="main">
		<div class="height1">&nbsp;</div>
		<div class="w685 fl">
			<div class="mb10">

                <!-- Qvod控件栏 -->
				<div class="play_boxB">
					<div class="play_imgB">
                        <c:if test="${pathIndex+1 != fn:length(film.filmPathList)}" var="isNext" scope="page">
                            <c:set var="nextPathIndex" value="${pathIndex+1}"></c:set>
                        </c:if>
						<object classid="clsid:f3d0d36f-23f8-4682-a195-74c92b03d4af" width="685" height="515" id="qvodplayer" onerror="qvodError();">
							<param name='url' value='${film.filmPathList[pathIndex].netPath}'>
							<param name='AutoPlay' value='1'>
							<param name='Showcontrol' value='1'>
							<%--<param name='QvodAdUrl' value='http://192.168.1.4:8080/page/common/ad.jsp'>--%>
                            <c:if test="${isNext}">
                                <param name='NextWebPage' value='playFilm.html?filmId=${film.filmId}&nextPlayPathIndex=${nextPathIndex}'>
                            </c:if>
							
							<!-- 使用embed兼容火狐等非IE浏览器 -->
							<embed URL='${film.filmPathList[pathIndex].netPath}' type='application/qvod-plugin'
							 Showcontrol='1' AutoPlay='1' width="685" height="515"
                             <c:if test="${isNext}">NextWebPage="playFilm.html?filmId=${film.filmId}&nextPlayPathIndex=${nextPathIndex}"</c:if>>
							</embed>
						</object>
					</div>
				</div>

                <!-- 评分/分享栏 -->
				<div class="msg_box">
					<table width="100%" border="0" cellspacing="0" cellpadding="0">
  						<tr>
    						<td width="26%">
                                评分: <font class="fot3"><span>${film.score}</span></font> / 10
                                ( <span>${fn:length(film.scoreList)}</span> 人投票 )
                            </td>
    						<td width="74%">
    							<div class="star_sp" onmouseover="rate(this,event)" title="${film.filmId}">
                                    <span class="giveScore">给我评分：</span>
    								<img src="<%=request.getContextPath() %>/images/grade_grey_star.gif" title="2分"/>
                                    <img src="<%=request.getContextPath() %>/images/grade_grey_star.gif" title="4分"/>
                                    <img src="<%=request.getContextPath() %>/images/grade_grey_star.gif" title="6分"/>
                                    <img src="<%=request.getContextPath() %>/images/grade_grey_star.gif" title="8分"/>
                                    <img src="<%=request.getContextPath() %>/images/grade_grey_star.gif" title="10分"/>
                                    <span></span>
    							</div>
    						</td>
  						</tr>
  						<tr class="bnone">
    						<td colspan="4">
                                <!-- Baidu Button BEGIN -->
                                <div id="bdshare" class="bdshare_t bds_tools get-codes-bdshare">
                                    <span class="bds_more">分享到：</span>
                                    <a class="bds_tsina"></a>
                                    <a class="bds_qzone"></a>
                                    <a class="bds_tqq"></a>
                                    <a class="bds_sqq"></a>
                                    <a class="bds_douban"></a>
                                    <a class="bds_fbook"></a>
                                    <a class="bds_tieba"></a>
                                    <a class="bds_twi"></a>
                                    <a class="bds_linkedin"></a>
                                    <a class="bds_deli"></a>
                                    <a class="shareCount"></a>
                                </div>
                                <!-- Baidu Button END -->
                            </td>
    					</tr>
					</table>
				</div>

			</div>

            <!-- 评论栏 -->
            <iframe src="discussList.html?filmId=${film.filmId}&page=1" width="685px" height="730px" frameborder="0" scrolling="no"></iframe>

          </div>  

          <div class="w290 fr">
               <div class="nav_box mb10">
                     <div class="nav_box1_t">
                       <div class="nav1_t_m"><div class="nav_box_tl"></div></div>
                       <div class="nav1_t_l"></div>
                       <div class="nav1_t_r"></div>
                   </div>

                   <form id="playBoxForm">
                   <input type="hidden" id="playBoxHidden" name="value"/>
                   <div class="nav_box1_m">
                       <div class="p10">
                           <div class="detail_vtop">
                               <div class="box_l">
                                   <div class="img_box">
                                   		<img src="${film.mimagePath}" width="90" height="68" class="img_bod" />
                                   </div>
                                   <div class="tatol">
                                   		<span class="sp1">${film.playNum}</span>
                                   		<span class="sp2">${fn:length(film.filmDiscussList)}</span>
                                   	</div>
                               </div>

                               <div class="box_r">
                                   <h3 class="title_h0">${film.filmName}</h3>
                                   <p>
                                       上映时间：
                                   		<a href="javascript:void(0);" onclick="javascript:location.href='/page/filmListByCondition.html?page=1&showTime=${film.showTime}';">
                                   			${film.showTime}
                                   		</a>
                                   </p>
                                   <p>
                                       电影主演：
                                       <c:forEach var="star" items="${film.starList}">
                                           <a href="javascript:void(0);" onclick="javascript:location.href='/page/filmListByCondition.html?page=1&starId=${star.id}';">
                                                   ${star.starName}
                                           </a>
                                       </c:forEach>
                                   </p>
                               </div>

                               <div class="nofloat"></div>
                               <div class="text_box1">
                                  <p>发行地区：
                                        <a href="javascript:void(0);" onclick="javascript:location.href='/page/filmListByCondition.html?page=1&regionId=${film.region.regionId};'">
                                            ${film.region.regionName}
                                    </a>
                                  <p>
                                  <p>相关标签：
                                   <c:forEach var="tag" items="${fn:split(film.tags,';')}">
                                    <a href="javascript:void(0);" onclick="clickPlayBox('${tag}')">${tag}</a>
                                   </c:forEach>
                                   </p>
                                   <c:if test="${fn:length(film.filmPathList) > 1}">
                                       <p class="playnum" >
                                           目录剧集：<br/>
                                           <ul class="mn_list_li">
                                               <c:forEach var="filmPath" items="${film.filmPathList}" varStatus="num" begin="0">
                                                   <li <c:if test="${pathIndex == num.index}">style="color: #FFFFFF;text-decoration: none;background-color: #004976;"</c:if>>
                                                   <a href="javascript:void(0);" onclick="javascript:location.href='playFilm.html?filmId=${film.filmId}&nextPlayPathIndex=${num.index}&flag=1'">
                                                       <c:choose>
                                                           <c:when test="${filmPath.labelTitle == null || filmPath.labelTitle == ''}">
                                                               第${filmPath.orderNum + 1}集
                                                           </c:when>
                                                           <c:otherwise>
                                                               ${filmPath.labelTitle}
                                                           </c:otherwise>
                                                       </c:choose>
                                                   </a>
                                                   </li>
                                               </c:forEach>
                                           </ul>
                                       </p>
                                   </c:if>
                               </div>
                           </div>

                           <div class="detail_vbot">
                               &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                               ${fn:substring(film.filmIntroduce, 0, 50)}......
                               <a href="javascript:void(0);" onclick="toggleDetail('${film.filmIntroduce}')">[更多]</a>
                           </div>
                       </div>
                    </div>
                    </form>

                   <div class="nav_box1_b">
                       <div class="nav1_b_m"><div class="nav_box_bl"></div></div>
                       <div class="nav1_b_l"></div>
                       <div class="nav1_b_r"></div>
                   </div>

                 </div>
                 
                 
                 <div class="nav_box mb10">
                     <div class="nav_box2_t">
                       <div class="nav2_t_m">
                           <div class="nav_title1">
                           <font class="fot2">你可能喜欢</font>
                           </div>
                       </div>
                       <div class="nav2_t_l"></div>
                       <div class="nav2_t_r"></div>
                   </div>
                   
                   <div class="nav_box2_m">
                      <div class="video_box2">
                         <ul class="v_box1">
                             <c:forEach items="${roundFilmList}" var="roundFilm">
                                 <li>
                                     <div class="img_box">
                                         <a href="javascript:void(0);" onclick="javascript:location.href='/page/playFilm.html?filmId=${roundFilm.filmId}';">
                                             <img src="${roundFilm.mimagePath}" width="90" height="68" class="img_bod" />
                                         </a>
                                     </div>
                                     <div class="box_r">
                                         <h3 class="title_h3" style="text-align: left;">
                                             <a href="javascript:void(0);" onclick="javascript:location.href='/page/playFilm.html?filmId=${roundFilm.filmId}';">
                                                ${roundFilm.filmName}
                                             </a>
                                         </h3>
                                         <div class="grade">
                                             <span class="grade_empty"><span class="grade_full grade_4"></span></span>
                                             <span class="grade_text">${roundFilm.score}</span>
                                         </div>
                                         <div class="tatol">
                                             <span class="sp1">${roundFilm.playNum}</span>
                                             <span class="sp2">${fn:length(roundFilm.filmDiscussList)}</span>
                                         </div>
                                     </div>
                                 </li>
                             </c:forEach>
                         </ul>
                         
                         <div class="nofloat"></div>
                      </div>
                   </div>                   
                   
                        
                   <div class="nav_box2_b">
                       <div class="nav2_b_m"><div class="nav_box_bl1"></div></div>
                       <div class="nav2_b_l"></div>
                       <div class="nav2_b_r"></div>
                   </div>
               
                 </div>
                                  
          </div>
                 

          <div class="nofloat"></div>

    </div>
	
	<jsp:include page="footer.jsp"></jsp:include>
	
</div>

<!-- Baidu Button BEGIN -->
<script type="text/javascript" id="bdshare_js" data="type=tools&amp;uid=3683027" ></script>
<script type="text/javascript" id="bdshell_js"></script>
<script type="text/javascript">
    document.getElementById("bdshell_js").src = "http://bdimg.share.baidu.com/static/js/shell_v2.js?cdnversion=" + Math.ceil(new Date()/3600000)
</script>
<!-- Baidu Button END -->

</body>
</html>